

const express = require('express')
const router = express.Router()
const orderHandler = require('../../router_handler/module2/order');

router.get('/getorder/:user_id', orderHandler.getAllOrder) // 获取所有订单

router.post('/addorder', orderHandler.addNewOrder) // 添加订单

router.get('/update/:id/:state', orderHandler.updateOrderState) // 更新订单状态

router.get('/searchorder', orderHandler.orderSearch) //

// router.get('/search', orderHandler.orderIdSearch);// 按订单号查询订单

// router.get('/search', orderHandler.orderGoodsNameSearch);// 按商品名查询订单')

module.exports = router;